export function validateInput(length = 20, label = '输入框') {
    return {
      trigger: "blur",
      validator: (rule, value, callback) => {
        if (value && value.length > length) {
          callback(`${label}最大限制输入${length}字符`);
        } else {
          callback()
        }
      },
    }
  }